import { TakeoutModel } from "./Takeout";
import { UserModel } from "./User";

interface Discuss {
    id?: number;
    create_time?: Date;
    content: string;
    user: string | UserModel; // 用户唯一标识符
    takeout: number | TakeoutModel; // 外卖唯一标识符
}

export class DiscussModel implements Discuss {
    id?: number | undefined;
    create_time?: Date | undefined;
    content!: string;
    user!: string | UserModel;
    takeout!: number | TakeoutModel;
}